home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Tools 2
/
Amiga Tools 2.iso
/
rexx
/
setuptfax.avm
< prev
next >
Wrap
Text File
|
1995-03-09
|
5KB
|
215 lines
/* TITLE: avm:rexx/setuptfax.avm */
/* reading fax settings and writing to the serialdevice */
myvar = getclip('TFaxStp1')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxID')
if myvar ~= "" then
do /* if not "" */
cidstring = 'AT+FLID="'||myvar||'"'
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxCap')
if myvar ~= "" then
do
cidstring = 'AT+FDCC='||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp2')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp3')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp4')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end
myvar = getclip('TFaxStp5')
if myvar~ = "" then
do
cidstring = 'AT'||myvar
'writeline' cidstring
'readline' '10'
action = rc
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
'readline' '10'
action = rc
if action = 0 then value = result
select
when action = 0 then nop
when action = 10 then signal stdtimedout
when action = 12 then signal stdabort
when action = 14 then signal stderror
when action = 16 then signal stderror
otherwise signal arexxerror
end
end